package com.theme.passport.service.theme.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.theme.common.mvc.utils.PageUtils;
import com.theme.common.mvc.utils.Query;

import com.theme.passport.dao.theme.ThemeAttachmentDao;
import com.theme.passport.entity.theme.ThemeAttachmentEntity;
import com.theme.passport.service.theme.ThemeAttachmentService;


@Service("themeAttachmentService")
public class ThemeAttachmentServiceImpl extends ServiceImpl<ThemeAttachmentDao, ThemeAttachmentEntity> implements ThemeAttachmentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ThemeAttachmentEntity> page = this.page(
                new Query<ThemeAttachmentEntity>().getPage(params),
                new QueryWrapper<ThemeAttachmentEntity>()
        );

        return new PageUtils(page);
    }

}